package cn.wolfcode.luowowo.common.domain;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *  景点点评
 */

@Getter
@Setter
@Document("Scenic_Comment")
public class ScenicComment implements Serializable{
    public static final int SCENIC_COMMENT_TYPE_COMMENT = 0; //普通点评
    public static final int SCENIC_COMMENT_TYPE = 1; //点评的评论
    public static final int SCENIC_COMMENT_TYPE_AGAIN = 2;//评论的评论

    @Id
    private String id; //mongodb的id
    private String objectId;
    private String rank_star ;

    private Long detailId; //景点的id
    private String detailTitle; //景点的标题

    private Long userId;    //用户id
    private String username; //用户名
    private String city;
    private int level;
    private String headUrl;   // 用户头像

    private String picUrl;    //点评的图片
    private List<String> pics;
    private int type = SCENIC_COMMENT_TYPE_COMMENT; //评论类别
    private Date createTime; //创建时间 ,service设置

    private String content;  //评论内容
    private ScenicComment refComment;  //点评的评论

    private List<String> replys = new ArrayList<>();

    private int thumbupnum = 0;     //点赞数
    private List<Long> thumbuplist = new ArrayList<>();  //点赞的用户id集合

}
